package com.joshjung.echosurf
{
    import flash.utils.ByteArray;
    import flash.utils.Endian;

    public class ESPacket
    {
        public var clientID : int;
        public var sizeExpected : int;
        public var data : ByteArray;

        public function ESPacket(data : ByteArray, clientID : int)
        {
            this.data = data;
            this.clientID = clientID;

            if (data)
            {
                data.endian = Endian.LITTLE_ENDIAN;
            }
        }
    }
}
